import request from './request'
const add = params => {
    return request({
        url: '/newsType/add',
        method: 'post',
        params
    })
}
const update = params => {
    return request({
        url: '/newsType/update',
        method: 'post',
        params
    })
}
const remove = params => {
    return request({
        url: '/newsType/delete',
        method: 'POST',
        params
    })
}
const detail = params => {
    return request({
        url: '/newsType/detail',
        method: 'get',
        params
    })
}
const list = params => {
    return request({
        url: '/newsType/list',
        method: 'get',
        params
    })
}
export default {
    add,
    update,
    remove,
    detail,
    list
}